<layout name='layout/main' />

<header class="am-header am-header-default">
	<div class="am-header-left am-header-nav">
	<a href="<{:U('Store/index')}>"><i class="am-header-icon am-icon-home"></i></a>
	</div>
	<h1 class="am-header-title">确认收货</h1>
</header>

<div class="commentBox">
	<div class="tabCom">
		<li class="star1" data-star="1"><span>差</span><p></p></li>
		<li class="star2" data-star="2"><span>一般</span><p></p></li>
		<li class="star3" data-star="3"><span>满意</span><p class="active"></p></li>
		<li class="star4" data-star="4"><span>很满意</span><p></p></li>
		<li class="star5" data-star="5"><span>强烈推荐</span><p></p></li>
	</div>
	<div class="starBox">
		<i class="am-icon-star-o"></i>
		<i class="am-icon-star-o"></i>
		<i class="am-icon-star-o"></i>		
	</div>

	<form method="post" action="<{:U('Order/savecomm')}>" class="ajax am-form" id="doc-vld-msg">
	<h4><{$list['pname']}></h4>
	<div class="am-form-group">
		<textarea name="content" rows="5" placeholder="点评内容" required></textarea>
	</div>
	<div class="am-form-group">
		<button class="am-btn am-btn-danger"><i class="am-icon-pencil"></i> 提交评论</button>
	</div>
	<input type="hidden" name="memberID" value="<{$_user['memberID']}>">
	<input type="hidden" name="wxname" value="<{$_user['wxname']}>">
	<input type="hidden" name="pname" value="<{$list['pname']}>">
	<input type="hidden" name="pid" value="<{$list['pid']}>">
	<input type="hidden" name="star" id="star" value="3">
	<input type="hidden" name="detailID" id="star" value="<{$list['id']}>">
	</form>

</div>

<script>
$(function(){
	$(".tabCom li").click(function(){
		$(".tabCom li p").removeClass("active");
		$(this).children("p").addClass("active");
		var v = $(this).attr("data-star");
		var str='';
		for (var i = 0; i < v; i++) {
			str += '<i class="am-icon-star-o"></i>';
		}
		$(".starBox").html(str);
		$("#star").val(v);
	})
})
</script>

<div class="footerBox"> <include file="Public:menu_member" /> </div>
